package com.liy.cloud.common.pw.service.impl;

import com.liy.cloud.common.pw.dao.PwDeviceMoneyDetailDao;
import com.liy.cloud.common.pw.entity.PwDeviceMoneyDetailEntity;
import com.liy.cloud.common.pw.service.PwDeviceMoneyDetailService;
import com.das.framework.common.dao.IBaseDao;
import com.das.framework.common.service.impl.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author libs
 * @date 2019/1/8 11:04:59
 * @description 车站设备票款库存明细从表 Service接口服务实现
 */
@Service
public class PwDeviceMoneyDetailServiceImpl extends BaseServiceImpl<PwDeviceMoneyDetailEntity, String> implements PwDeviceMoneyDetailService {

    @Autowired
    private PwDeviceMoneyDetailDao pwDeviceMoneyDetailDao;

    @Override
    public IBaseDao<PwDeviceMoneyDetailEntity, String> getDao() {
        return pwDeviceMoneyDetailDao;
    }

    @Override
    public int addList(List<PwDeviceMoneyDetailEntity> detailEntityList) throws Exception {
        return pwDeviceMoneyDetailDao.addList(detailEntityList);
    }

    @Override
    public List<PwDeviceMoneyDetailEntity> findListToNow(String date) {
        return pwDeviceMoneyDetailDao.selectListToNow(date);
    }
}
